<?php

function createUser($datos){
	$sl=construct_insert_fields($datos);
	$query="INSERT INTO admin_users $sl";
	
	$r=mysql_query($query);
	return $r;
}

function getUser_byId($id){
	$sl="SELECT * FROM admin_users WHERE id=$id";
	$r=mysql_query($sl);
	return $r;
}

function getUsers(){
	$sl="SELECT * FROM admin_users ORDER BY id";
	$r=mysql_query($sl);
	return $r;
}

?>